package de.mafr.jsystest.ws.string;

import de.mafr.jsystest.SystemTestConfig;
import de.mafr.jsystest.ws.AbstractWebService;
import de.mafr.jsystest.ws.Request;
import de.mafr.jsystest.ws.Response;


public class StringWebService extends AbstractWebService<String> {
	private static final String CONTENT_TYPE = "text/plain";
	private static final String CONTENT_ENCODING = "UTF-8";
	
	public StringWebService(SystemTestConfig config) {
		super(new StringResponseFactory(), config);
	}
	
	public Response<String> post(String uri, String content) {
		return post(uri, new Request<String>(content, CONTENT_TYPE, CONTENT_ENCODING));
	}
	
	public Response<String> put(String uri, String content) {
		return put(uri, new Request<String>(content, CONTENT_TYPE, CONTENT_ENCODING));
	}
}
